package com.pig4cloud.pigx.wallet.mapstruct;

import com.pig4cloud.pigx.wallet.entity.ContractAccountDetail;
import com.pig4cloud.pigx.wallet.vo.ContractAccountDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ContractAccountDetailStruct
 *
 * @date 2022/8/12 16:32
 */
@Mapper
public interface ContractAccountDetailStruct {
	ContractAccountDetailStruct INSTANCE = Mappers.getMapper(ContractAccountDetailStruct.class);

	/**
	 * 将实体类转换为vo
	 *
	 * @param entity 实体类
	 * @return {@link ContractAccountDetailVO}
	 * @date 2022/2/8
	 * @since 1.0.0
	 */
	@Mappings({})
	ContractAccountDetailVO entity2Vo(ContractAccountDetail entity);

	/**
	 * 将实体类转换为vo
	 *
	 * @param list 实体类
	 * @return {@link List< ContractAccountDetailVO>}
	 * @date 2022/2/8
	 * @since 1.0.0
	 */
	@Mappings({})
	List<ContractAccountDetailVO> list2VoList(List<ContractAccountDetail> list);
}
